package com.qf.leadnewsfeignapi.wemedia;

import com.qf.leadnewsmodel.pojos.wemedia.WmNews;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface WeMediaApi {
    @GetMapping("/api/feign/news/getOne/{id}")
    WmNews findNewsById(@PathVariable("id")Integer id);

    @PostMapping("/api/feign/news/update")
    public void updateNewsById(@RequestBody WmNews wmNews);

    @GetMapping("/api/feign/channel/findName/{id}")
    String findChannelNameById(@PathVariable("id") Integer id);

    @GetMapping("/api/feign/user/findName/{id}")
    String findUserNameById(@PathVariable("id") Integer id);
}
